Skip to content

Conversation

@yyuuttaaoo
Copy link
Contributor

@yyuuttaaoo yyuuttaaoo commented Jan 7, 2026

Added compatible_hashlib module to fix Python 3.8 hashlib function parameter compatibility issues
Replaced hashlib imports in fs_uploader and completion_hook with compatible versions
Used typing_extensions TypeAlias in completion_hook to enhance type compatibility
Optimized Token Histogram attribute dictionary merging in metrics to ensure compatibility and semantic correctness

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

Added compatible_hashlib module to fix Python 3.8 hashlib function parameter compatibility issues
Replaced hashlib imports in fs_uploader and completion_hook with compatible versions
Used typing_extensions TypeAlias in completion_hook to enhance type compatibility
Optimized Token Histogram attribute dictionary merging in metrics to ensure compatibility and semantic correctness
Copy link
Collaborator

@Cirilla-zmh Cirilla-zmh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Cirilla-zmh Cirilla-zmh merged commit 9947a4c into alibaba:main Jan 8, 2026
676 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants